const express = require("express");
const serverController = require("../controller/serverController");
const authController = require("../controller/authController");

const router = express.Router({ mergeParams: true });

// 创建服务
router
    .route("/")
    .post(serverController.createServer);

router
    .route("/:orgId")
    .get( serverController.getServerFromOrgName);
// authController.protect,
module.exports = router;
